public class Account
{
	private static int totalEmpAccounts;
	private static int totalAccounts;
	private static int bankCode = 70163370;
	private static Account[] allAccounts = Account[totalAccounts+5];
	private static Account[] empAllAccounts = Account[totalAccounts+5];
	private accountNr;
	private int amount;
	private String name;
	private String surname;
	// private int creationDate;
	private String login;
	private String password;
	private String empname;
	private String surname;
	// private int empNr;
	
	public int getBankCode()
	{
		return bankCode;
	}
	
	public int getTotalAccounts()
	{	
		return totalAccounts;
	}
	
	public static Account (int accountNr, String name, String surname, String login, String password)
	{
		this.accountNr = accountNr;
		this.name = name;
		this.surname = surname;
		// this.creationDate = creationDate;
		this.login = login;
		this.password = password;
		allAccounts[totalAccounts] = this;
		totalAccounts += 1;
	}
	
	
	public static Account(String empname,String empSurname, String login, String password, int banccode);
	{
		if(this.banccode == banccode)
		{
			this.empname = empname;
			this.empsurname = empsurname;
			// this.creationDate = creationDate;
			// this.empNr = empNr;
			this.login = login;
			this.password = password;
			empAllAccounts[totalEmpAccounts] = this;
			totalEmpAccounts += 1;
	}
		
	
	public void setPassword(String password)
	{
		this.password = password;
	}
	
	public boolean checkPassword(String password)
	{
		if (this.password == password)
			return true;
		else
			return false;
	}
	
	public String getPassword()
	{
		return password;
	}
	
	public void setLogin(String login)
	{
		this.login = login;
	}
	
	public String getLogin()
	{
		return login;
	}
	
	public String getname()
	{
		return name;
	}
	
	public void setname(String name)
	{
		this.name = name;
	}
}
		
	